package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceAgreeDrawPrizeNum 统计抽奖次数
type DanceAgreeDrawPrizeNum struct {
	Id           int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"`
	UserId       string         `json:"userId" gorm:"column:user_id;type:varchar(256);not null;default:'';comment:用户id"`
	DrawPrizeNum int64          `json:"drawPrizeNum" gorm:"column:draw_prize_num;type:bigint;default:0;not null;comment:抽奖次数"`
	DateStr      string         `json:"dateStr" gorm:"column:date_str;type:varchar(256);not null;default:'';comment:日期(天)"`
	CreatedId    int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	UpdateId     int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`   // 更新人id
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt    gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
